# 狮群算法排课相关参数配置
particals = 60  # 种群数量
MaxIter = 100  # 最大迭代次数
# archive_size = 100  # 存储库储存上限数量
beta = 0.2  # 成年狮所占比列
Nc = int(particals * beta)  # 成年狮母狮数量
Np = particals - Nc  # 幼师数量
step_factory = 0.7

dim = 2  # 维度，优化变量的个数

# 权重可以自己设置
room_weight = 1
time_weight = 1
s_weight = 10

url = '172.16.3.19'
user = 'sa'
password = '*#zw8'
database = 'SPF_ITC2019'

file = [
    'agh-fal17',
    'agh-fis-spr17',
    'agh-ggis-spr17',
    'agh-ggos-spr17',
    'agh-h-spr17',
    'bet-fal17',
    'bet-spr18',
    'iku-fal17',
    'iku-spr18',
    'lums-fal17',
    'lums-spr18',
    'mary-fal18',
    'mary-spr17',
    'muni-fi-fal17',
    'muni-fi-spr16',
    'muni-fi-spr17',
    'muni-fsps-spr17',
    'muni-fsps-spr17c',
    'muni-fspsx-fal17',
    'muni-pdf-spr16',
    'muni-pdf-spr16c',
    'muni-pdfx-fal17',
    'nbi-spr18',
    'pu-d5-spr17',
    'pu-d9-fal19',
    'pu-llr-spr17',
    'pu-proj-fal19',
    'tg-fal17',
    'tg-spr18',
    'yach-fal17'
]

tablePreffix_index = 0